package com.our.model;

public class RepResource {
    private String resId;

    private String resName;

    private String resPath;

    private String resType;

    public String getResId() {
        return resId;
    }

    public void setResId(String resId) {
        this.resId = resId == null ? null : resId.trim();
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName == null ? null : resName.trim();
    }

    public String getResPath() {
        return resPath;
    }

    public void setResPath(String resPath) {
        this.resPath = resPath == null ? null : resPath.trim();
    }

    public String getResType() {
        return resType;
    }

    public void setResType(String resType) {
        this.resType = resType == null ? null : resType.trim();
    }

	@Override
	public String toString() {
		return "RepResource [resId=" + resId + ", resName=" + resName + ", resPath=" + resPath + ", resType=" + resType
				+ "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((resId == null) ? 0 : resId.hashCode());
		result = prime * result + ((resName == null) ? 0 : resName.hashCode());
		result = prime * result + ((resPath == null) ? 0 : resPath.hashCode());
		result = prime * result + ((resType == null) ? 0 : resType.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RepResource other = (RepResource) obj;
		if (resId == null) {
			if (other.resId != null)
				return false;
		} else if (!resId.equals(other.resId))
			return false;
		if (resName == null) {
			if (other.resName != null)
				return false;
		} else if (!resName.equals(other.resName))
			return false;
		if (resPath == null) {
			if (other.resPath != null)
				return false;
		} else if (!resPath.equals(other.resPath))
			return false;
		if (resType == null) {
			if (other.resType != null)
				return false;
		} else if (!resType.equals(other.resType))
			return false;
		return true;
	}

	public RepResource(String resId, String resName, String resPath, String resType) {
		super();
		this.resId = resId;
		this.resName = resName;
		this.resPath = resPath;
		this.resType = resType;
	}

	public RepResource() {
		super();
		// TODO Auto-generated constructor stub
	}
    
}